module.exports = {
  assetsDir: 'static',
  productionSourceMap: false,
  configureWebpack: {
    devtool: 'source-map'
  },
  //处理跨域请求
  devServer: {
    proxy: {
      '/api':{
        target: 'http://localhost:8080/',
        changeOrigin: true,
        pathRewrite:{
          '^/api': ''
        },
        headers: {
          'Access-Control-Allow-Origin': '*'
        }
      }
    }
  }
}